﻿/*CREATE TRIGGER [dbo].[ProveedoresSemillaSaldos_DeletionTrigger] 
    ON [ProveedoresSemillaSaldos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[ProveedoresSemillaSaldos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[SaldoGuid] = [ProveedoresSemillaSaldos_Tombstone].[SaldoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[ProveedoresSemillaSaldos_Tombstone] 
    ([SaldoGuid], DeletionDate)
    SELECT [SaldoGuid], GETUTCDATE()
    FROM deleted 
END*/